<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a>按月排列</a></li>
        <li ><a href="{:url('assess/sx_gradelist')}">实习生列表</a></li>
    </ul>
    <form class="well form-inline margin-top-20" method="post" action="{:url('assess/gradelist')}">

        <input type="text" class="form-control js-bootstrap-date" name="time" style="width: 200px;" value="{$time|default=''}" >


        <input type="submit" class="btn btn-primary" value="搜索"/>
    </form>

    <table class="table table-hover table-bordered table-list margin-top-20">
        <thead>
        <tr>


            <th style="text-align: center" > ID </th>
            <th style="text-align: center" >名字</th>
            
            <th style="text-align: center" >时间</th>

            <th style="text-align: center" >违规次数</th>
            <th style="text-align: center" >本月评分</th>
            <th style="text-align: center" >备注</th>
            <th style="text-align: center" >操作</th>

        </tr>
        </thead>
        <?PHP foreach ($infos as $v){ ?>
        <tr>
            <td style="text-align: center"><b>{$v.userid}</b></td>
            <td style="text-align: center"><b>{$v.username|default=''}</b></td>
            <!--td style="text-align: center"><b><a href="{:url('assess/xq')}?id={$v.assess_id}">{$v.assess_id}</a></b></td-->
            <td style="text-align: center"><b>{$time}</b></td>

            <td style="text-align: center"><b>{$v.count|default='全勤'}</b></td>
            <td style="text-align: center"><b>{$v.sum|default=''}</b></td>
            <td style="text-align: center"><b>{$v.commit|default=''}</b></td>
            <td style="text-align: center"><a href="{:url('assess/attendance')}?id={$v.assess_id}">出勤</a>|
                <?php if(($v['rz_time']-time())<0){?>
                <a href="{:url('assess/grade')}?id={$v.assess_id}">评分</a>
                <?php } else {?>
                 <a href="{:url('assess/sx_grade')}?id={$v.assess_id}">实习评分</a>
                <?php }?>
            </td>
        </tr>
        <?PHP } ?>
        <?PHP foreach ($user2 as $v){ ?>
        <tr>
            <td style="text-align: center"><b>{$v.id}</b></td>
            <td style="text-align: center"><b>{$v.user_login|default=''}</b></td>
            
            <td style="text-align: center"><b>{$time}</b></td>

            <td style="text-align: center"><b>--</b></td>
            <td style="text-align: center"><b>--</b></td>
            <td style="text-align: center"><b>--</b></td>
            <td style="text-align: center"><a href="{:url('assess/attendance')}?userid={$v.id}&time={$time}">出勤</a>|

                <a href="{:url('assess/grade')}?userid={$v.id}&time={$time}">评分</a>

            </td>
        </tr>
        <?PHP } ?>

    </table>

    <div class="table-actions">
        <ul class="pagination">{$page|default=''}</ul>
    </div>
</div>
<script src="__STATIC__/js/admin.js"></script>

</body>
</html>